#ifndef		MAINMENU_HH__
# define	MAINMENU_HH__

# include	<map>
# include	<SFML/Graphics.hpp>
# include	"Icontext.hh"
# include	"ImgException.hh"
# include	"GUI.hh"
# include	"GObject.hh"

class			MainMenu : public Icontext
{
public:
  MainMenu(sf::RenderWindow&, IGUI::e_context&, sf::Event&);
  ~MainMenu(void);
  virtual void		run(void);

private:
  IGUI::e_context	&focus;
  std::map<sf::Event::EventType, void (MainMenu::*)(void)> action;
  sf::RenderWindow	&App;
  sf::Event		&Event;
  const sf::Input&	Input;
  std::vector<GObject*>	items;
  sf::Image		exit;
  sf::Image		options;
  sf::Image		pve;
  sf::Image		pvp;
  sf::Image		bgm;
  virtual void		gere_key(void);
  virtual void		mouse(void);
  virtual void		resized(void);
  void			mouser(void);
  void			mouseHover(void);
};

#endif		/* !MAINMENU_HH__ */
